# Replication materials for:

## Why Do Governments Tax or Subsidize Fossil Fuels?

## JOP Manuscript Number: 201028R2


There are five datasets to load into R:

"annualpanel_ffs_final.csv" - Annual panel of fossil fuel subsidies, stored as CSV

"cross_national_ffs_final.csv" - Cross-section of fossil fuel subsidies, stored as CSV

"monthlypanel_ffs.csv" - Monthly panel of fossil fuel subsidies, stored as CSV

"consdata.RData" - Annual panel of gasoline consumption, stored as RData file

"master_oilwealth_EJ_expanded.dta" - Cross-section of petroleum endowment, stored as Stata DTA


There are two separate R scripts to replicate the analysis. 
Note that these are stored as Rmd (R Markdown) files, which store results into knitted PDFs:

"subsidies_tables.Rmd" - Replication code for all tables in the main text and appendix

"subsidies_figures.Rmd" - Replication code for all figures in the main text and appendix


There are corresponding .R files if the user does not want to use RStudio to process .Rmd files:

"subsidies_tables.R"

"subsidies_figures.R" 


All analysis was conducted in RStudio using R 4.1.1 on macOS Big Sur